package com.wolf.service.impl;

import com.wolf.pojo.Wl_user_admin;
import com.wolf.repository.Wl_user_adminMapper;
import com.wolf.service.Wl_user_adminService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class Wl_user_adminServiceImpl implements Wl_user_adminService{

    @Resource
    Wl_user_adminMapper wl_user_adminMapper;

    @Override
    public int deleteByPrimaryKey(String id) {
        return wl_user_adminMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Wl_user_admin record) {
        return wl_user_adminMapper.insert(record);
    }

    @Override
    public int insertSelective(Wl_user_admin record) {
        return wl_user_adminMapper.insertSelective(record);
    }

    @Override
    public Wl_user_admin selectByPrimaryKey(String id) {
        return wl_user_adminMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Wl_user_admin record) {
        return wl_user_adminMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Wl_user_admin record) {
        return wl_user_adminMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Wl_user_admin> getAll() {
        return wl_user_adminMapper.getAll();
    }

    @Override
    public Wl_user_admin login(String userName, String passWord) {
        return wl_user_adminMapper.login(userName,passWord);
    }
}
